import request from '@/utils/request';

// 获取评论列表
export function getComments() {
  return request({
    url: '/comment',
    method: 'get'
  });
}

// 删除评论
export function deleteComment(id) {
  return request({
    url: `/comment/${id}`,
    method: 'delete'
  });
}

// 更新评论状态
export function updateCommentStatus(id, status) {
  return request({
    url: `/comment/${id}/status`,
    method: 'put',
    params: { status }
  });
}